<!DOCTYPE html>
<html lang="zh-cn" xmlns:th="http://www.thymeleaf.org">
<head>
    <meta charset="UTF-8">
    <link rel="stylesheet" type="text/css" th:href="@{/css/default.css}">
    <link rel="shortcut icon" type="image/png" th:href="@{svg/file_list.png}">
<!--    <link rel="stylesheet" type="text/css" th:href="@{/css/user-ui.css}">-->
    <title> - 乔翼云QoviCloud</title>
    <style>
        .user-content {
            width: 100%;
            text-align: center;
            margin: auto;
            padding: 30px 0 30px 0;
            display: inline-block;
            clear: both;
        }
        .user-navi{
            width: 20%;
            float: left;
            margin: auto;
        }
        .user-navi .navi-list{
            list-style: none;
            height: 40px;
            width: 100px;
        }
        .user-navi .bottom {
            list-style: none;
            height: 40px;
            width: 100px;
        }
        .user-navi .navi-list a, .user-navi .bottom a  {
            text-decoration-line: none;
            color: black;
        }
        .user-files {
            min-height: 400px;
            width: 79%;
            float: left;
            border-left: 1px solid gray;
            margin: auto;
        }
        .user-files table {
            border: 0;
            width: 100%;
            margin: auto;
        }
        .user-files tr {
            height: 40px;
        }
        #upload-files {
            border: darkgray solid 2px;
            border-radius: 5px;
        }
    </style>
</head>
<body>
    <div id="head-navi"></div>
    <div class="content">
        <p th:text="'当前用户&emsp;' + ${QID}"></p>
        <div id="upload-files" th:action="@{/add-files}">
            <p>单击此处可选择文件上传</p>
            <form th:action="@{/add-file}" th:method="post">
                <input type="file" />
            </form>
        </div>
    </div>
    <div class="user-content">
        <div class="user-navi">
            <ul style="padding-left: 10%;">
                <li class="navi-list"><a href="#">全部文件</a></li>
                <li class="navi-list"><a href="#">分　享</a></li>
                <li class="bottom"><a href="#">设　置</a></li>
            </ul>
        </div>
        <div class="user-files">
            <table>
                <tr>
                    <th th:each="fhead:${fileHead}" th:text="${fhead}"></th>
                </tr>
                <tr th:each="flist, stat:${fileList}">
                    <td><a th:href="@{/user/{QID}/{FILEID}(QID=${QID}, FILEID = ${flist.itemId})}">
                        <span th:text="${flist.itemName}"></span>
                    </a></td>
                    <td th:text="${flist.modifyTime}"></td>
                    <td th:text="${flist.itemType}"></td>
                    <td th:text="${flist.itemSize}"></td>
                </tr>
            </table>
        </div>
    </div>
    <div id="footer"></div>
</body>
<script src="http://code.jquery.com/jquery-latest.min.js"></script>
<script type="text/javascript">
    $(document).ready(function() {
        $("#head-navi").load("head-navi");
        $("#footer").load("footer");
    });
</script>
</html>